<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <h1>评论详情</h1>
  <h2>用户/评论者：{{comment.username}}</h2>
  <h2>评论内容：{{comment.content}}</h2>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            comment: {}
        },
        methods:{

        },
      created:function () {
        axios.get("/comment/selectById"+location.search).then(function (r) {
          v.comment=r.data;
        })
      }
    })
</script>
</body>
</html>